// app.js
import utils from './utils/utils'
import http from './utils/http'
wx.utils = utils
wx.http = http
App({
  // 存储两份token 
  token: wx.getStorageSync('token'),
  refreshToken: wx.getStorageSync('refreshToken'),
  globalData: {},
  // 保存token 到 全局app
  setToken(key, token) {
    this[key] = token
    wx.setStorageSync(key, token)
  }
})
